package com.gopay.webtest.vo;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class CommonResp implements Serializable {
	private static final long serialVersionUID = -1949079217597373599L;
	private String gopayOrderNum;
	/**
	 * 标的号
	 */
	private String bidNo;

	private String merId;

	/**
	 * 商户提交时间
	 */
	private Date merTxnTm;

	private String userSource;

	/**
	 * 投标类型 01：网贷专用账户投标
	 */
	private String bidType;

	private String repaymentType;

	/**
	 * 投资方协议号 ---------签约协议号
	 */
	private String investorContractNo;

	private String gopayTxnDate;

	private String gopayServerTime;

	/**
	 * 用户支付金额
	 */
	private String userTranAmt;

	/**
	 * 平台支付金额
	 */
	private String terracePayAmt;
	/**
	 * 备注
	 */
	private String remark;

	private String tranCode;

	private String merchantID;

	private String merOrderNum;

	private String tranAmt;

	private String feeAmt;

	private String tiliuAmt;

	private String tranDateTime;

	private String tranIP;

	private String respCode;

	private String msgExt;

	private String version;

	private String language;

	private String signType;

	private String charset;

	private String frontMerUrl;

	private String backgroundMerUrl;

	private String orderId;

	private String gopayOutOrderId;

	private String bankCode;

	private String tranFinishTime;

	private String goodsName;

	private String goodsDetail;

	private String buyerName;

	private String buyerContact;

	private String merRemark1;

	private String merRemark2;

	private String signValue;

	private String currencyType;

	private String virCardNoIn;

	private String ticketAmt;

	private String orgtranDateTime;

	private String orgOrderNum;

	private String orgtranAmt;

	private String isLocked;

	private String customerEMail;

	private String virCardNo;

	private String orgTxnType;

	private String orgTxnStat;

	private String verficationCode;

	private String authID;

	private String mercFeeAmt;

	private String respDesc;
	private String contractNo;
	private String gopayOrderId;
	private String merAcct;
	private String isRepeatSubmit;
	private String tranDesc;
	private String recvAcctType;

	// P2P新增
	private String userId;
	private String trustAcct;
	private String merUserId;
	private String msg;
	private String tranCmd;
	private String recvInfo;
	private String payInfo;
	private String emailOrMobile;
	private String bid;
	private String comAmt;
	private String comPayer;
	private String feePayer;
	private String operateTarget;
	private String isAuto;
	// 云账户新增
	private String agreeId;
	private String sq;
	private String respTime;
	private String reqCode;
	private String corpName;
	private String userName;
	private String userAcct;
	private String accountStauts;
	private String accountMerNum;
	private String successDateTime;
	private String name;
	private String phone;
	private String certType;
	// 充值
	private String tranType;
	private String freePayer;
	private String bandId;
	private String acctId;
	private String payAgreeId;
	private String recAgreeId;
	private String freePayerAmt;
	private String thirdPartyId;
	private String userType;
	private String signedType;
	private String custName;
	private String certNo;
	private String isRealNameCertify;
	private String constracterId;
	private String signedState;

	// 快捷支付身份验证版 add by dongdh 20160321
	private String buyerRealName;
	private String buyerRealCertNo;
	private String buyerRealMobile;
	private String buyerRealBankAcctNum;

	// 跨境人民币新增
	private String receiver;
	private String receiverCertNo;
	private String bankName;
	private String bankOrderNum;
	private String carrier;
	private String freightNum;
	private String freightType;


	private String dfSettleTime;
	private String payChannel;

	public CommonResp() {
		this.tranType = "";
		this.freePayer = "";
		this.bandId = "";
		this.acctId = "";
		this.payAgreeId = "";
		this.recAgreeId = "";
		this.freePayerAmt = "";
		this.tranCode = "";
		this.merchantID = "";
		this.merOrderNum = "";
		this.tranAmt = "";
		this.feeAmt = "";
		this.tiliuAmt = "";
		this.tranDateTime = "";
		this.tranIP = "";
		this.respCode = "";
		this.msgExt = "";
		this.version = "";
		this.language = "";
		this.signType = "";
		this.charset = "";
		this.frontMerUrl = "";
		this.backgroundMerUrl = "";
		this.orderId = "";
		this.gopayOutOrderId = "";
		this.bankCode = "";
		this.tranFinishTime = "";
		this.goodsName = "";
		this.goodsDetail = "";
		this.buyerName = "";
		this.buyerContact = "";
		this.merRemark1 = "";
		this.merRemark2 = "";
		this.signValue = "";
		this.currencyType = "";
		this.virCardNoIn = "";
		this.ticketAmt = "";
		this.orgtranDateTime = "";
		this.orgOrderNum = "";
		this.orgtranAmt = "";
		this.isLocked = "";
		this.customerEMail = "";
		this.virCardNo = "";
		this.orgTxnType = "";
		this.orgTxnStat = "";
		this.verficationCode = "";
		this.authID = "";
		this.mercFeeAmt = "";
		this.respDesc = "";
		this.contractNo = "";
		this.gopayOrderId = "";
		this.merAcct = "";
		this.isRepeatSubmit = "";
		this.tranDesc = "";
		this.recvAcctType = "";
		this.userId = "";
		this.trustAcct = "";
		this.merUserId = "";
		this.msg = "";
		this.tranCmd = "";
		this.recvInfo = "";
		this.payInfo = "";
		this.emailOrMobile = "";
		this.bid = "";
		this.comAmt = "";
		this.comPayer = "";
		this.feePayer = "";
		this.operateTarget = "";
		this.isAuto = "";

		this.agreeId = "";
		this.sq = "";
		this.respTime = "";
		this.reqCode = "";
		this.corpName = "";
		this.userName = "";
		this.userAcct = "";
		this.accountStauts = "";
		this.accountMerNum = "";
		this.successDateTime = "";
		this.name = "";
		this.certNo = "";
		this.phone = "";
		this.certType = "";

		this.buyerRealName = "";
		this.buyerRealCertNo = "";
		this.buyerRealMobile = "";
		this.buyerRealBankAcctNum = "";

		this.payChannel = "";
		this.dfSettleTime = "";
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getCertType() {
		return certType;
	}

	public void setCertType(String certType) {
		this.certType = certType;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserAcct() {
		return userAcct;
	}

	public void setUserAcct(String userAcct) {
		this.userAcct = userAcct;
	}

	public String getAccountStauts() {
		return accountStauts;
	}

	public void setAccountStauts(String accountStauts) {
		this.accountStauts = accountStauts;
	}

	public String getAccountMerNum() {
		return accountMerNum;
	}

	public void setAccountMerNum(String accountMerNum) {
		this.accountMerNum = accountMerNum;
	}

	public String getSuccessDateTime() {
		return successDateTime;
	}

	public void setSuccessDateTime(String successDateTime) {
		this.successDateTime = successDateTime;
	}

	public String getReqCode() {
		return reqCode;
	}

	public void setReqCode(String reqCode) {
		this.reqCode = reqCode;
	}

	public String getRespTime() {
		return respTime;
	}

	public void setRespTime(String respTime) {
		this.respTime = respTime;
	}

	public String getSq() {
		return sq;
	}

	public void setSq(String sq) {
		this.sq = sq;
	}

	public String getAgreeId() {
		return agreeId;
	}

	public void setAgreeId(String agreeId) {
		this.agreeId = agreeId;
	}

	public String getMercFeeAmt() {
		return mercFeeAmt;
	}

	public void setMercFeeAmt(String mercFeeAmt) {
		this.mercFeeAmt = mercFeeAmt;
	}

	public String getAuthID() {
		return authID;
	}

	public void setAuthID(String authID) {
		this.authID = authID;
	}

	public String getVerficationCode() {
		return verficationCode;
	}

	public void setVerficationCode(String verficationCode) {
		this.verficationCode = verficationCode;
	}

	public String getIsLocked() {
		return isLocked;
	}

	public void setIsLocked(String isLocked) {
		this.isLocked = isLocked;
	}

	public String getCustomerEMail() {
		return customerEMail;
	}

	public void setCustomerEMail(String customerEMail) {
		this.customerEMail = customerEMail;
	}

	public String getVirCardNo() {
		return virCardNo;
	}

	public void setVirCardNo(String virCardNo) {
		this.virCardNo = virCardNo;
	}

	public String getOrgTxnType() {
		return orgTxnType;
	}

	public void setOrgTxnType(String orgTxnType) {
		this.orgTxnType = orgTxnType;
	}

	public String getOrgTxnStat() {
		return orgTxnStat;
	}

	public void setOrgTxnStat(String orgTxnStat) {
		this.orgTxnStat = orgTxnStat;
	}

	public String getOrgtranDateTime() {
		return orgtranDateTime;
	}

	public void setOrgtranDateTime(String orgtranDateTime) {
		this.orgtranDateTime = orgtranDateTime;
	}

	public String getOrgOrderNum() {
		return orgOrderNum;
	}

	public void setOrgOrderNum(String orgOrderNum) {
		this.orgOrderNum = orgOrderNum;
	}

	public String getOrgtranAmt() {
		return orgtranAmt;
	}

	public void setOrgtranAmt(String orgtranAmt) {
		this.orgtranAmt = orgtranAmt;
	}

	public String getTicketAmt() {
		return ticketAmt;
	}

	public void setTicketAmt(String ticketAmt) {
		this.ticketAmt = ticketAmt;
	}

	public String getVirCardNoIn() {
		return virCardNoIn;
	}

	public void setVirCardNoIn(String virCardNoIn) {
		this.virCardNoIn = virCardNoIn;
	}

	public String getTranCode() {
		return tranCode;
	}

	public String getCurrencyType() {
		return currencyType;
	}

	public void setCurrencyType(String currencyType) {
		this.currencyType = currencyType;
	}

	public void setTranCode(String tranCode) {
		this.tranCode = tranCode;
	}

	public String getMerchantID() {
		return merchantID;
	}

	public void setMerchantID(String merchantID) {
		this.merchantID = merchantID;
	}

	public String getMerOrderNum() {
		return merOrderNum;
	}

	public void setMerOrderNum(String merOrderNum) {
		this.merOrderNum = merOrderNum;
	}

	public String getTranAmt() {
		return tranAmt;
	}

	public void setTranAmt(String tranAmt) {
		this.tranAmt = tranAmt;
	}

	public String getFeeAmt() {
		return feeAmt;
	}

	public void setFeeAmt(String feeAmt) {
		this.feeAmt = feeAmt;
	}

	public String getTiliuAmt() {
		return tiliuAmt;
	}

	public void setTiliuAmt(String tiliuAmt) {
		this.tiliuAmt = tiliuAmt;
	}

	public String getTranDateTime() {
		return tranDateTime;
	}

	public void setTranDateTime(String tranDateTime) {
		this.tranDateTime = tranDateTime;
	}

	public String getTranIP() {
		return tranIP;
	}

	public void setTranIP(String tranIP) {
		this.tranIP = tranIP;
	}

	public String getRespCode() {
		return respCode;
	}

	public void setRespCode(String respCode) {
		this.respCode = respCode;
	}

	public String getMsgExt() {
		return msgExt;
	}

	public void setMsgExt(String msgExt) {
		this.msgExt = msgExt;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getSignType() {
		return signType;
	}

	public void setSignType(String signType) {
		this.signType = signType;
	}

	public String getCharset() {
		return charset;
	}

	public void setCharset(String charset) {
		this.charset = charset;
	}

	public String getFrontMerUrl() {
		return frontMerUrl;
	}

	public void setFrontMerUrl(String frontMerUrl) {
		this.frontMerUrl = frontMerUrl;
	}

	public String getBackgroundMerUrl() {
		return backgroundMerUrl;
	}

	public void setBackgroundMerUrl(String backgroundMerUrl) {
		this.backgroundMerUrl = backgroundMerUrl;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getGopayOutOrderId() {
		return gopayOutOrderId;
	}

	public void setGopayOutOrderId(String gopayOutOrderId) {
		this.gopayOutOrderId = gopayOutOrderId;
	}

	public String getBankCode() {
		return bankCode;
	}

	public void setBankCode(String bankCode) {
		this.bankCode = bankCode;
	}

	public String getTranFinishTime() {
		return tranFinishTime;
	}

	public void setTranFinishTime(String tranFinishTime) {
		this.tranFinishTime = tranFinishTime;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public String getGoodsDetail() {
		return goodsDetail;
	}

	public void setGoodsDetail(String goodsDetail) {
		this.goodsDetail = goodsDetail;
	}

	public String getBuyerName() {
		return buyerName;
	}

	public void setBuyerName(String buyerName) {
		this.buyerName = buyerName;
	}

	public String getBuyerContact() {
		return buyerContact;
	}

	public void setBuyerContact(String buyerContact) {
		this.buyerContact = buyerContact;
	}

	public String getMerRemark1() {
		return merRemark1;
	}

	public void setMerRemark1(String merRemark1) {
		this.merRemark1 = merRemark1;
	}

	public String getMerRemark2() {
		return merRemark2;
	}

	public void setMerRemark2(String merRemark2) {
		this.merRemark2 = merRemark2;
	}

	public String getSignValue() {
		return signValue;
	}

	public void setSignValue(String signValue) {
		this.signValue = signValue;
	}

	public String getRespDesc() {
		return respDesc;
	}

	public void setRespDesc(String respDesc) {
		this.respDesc = respDesc;
	}

	public String getContractNo() {
		return contractNo;
	}

	public void setContractNo(String contractNo) {
		this.contractNo = contractNo;
	}

	public String getGopayOrderId() {
		return gopayOrderId;
	}

	public void setGopayOrderId(String gopayOrderId) {
		this.gopayOrderId = gopayOrderId;
	}

	public String getMerAcct() {
		return merAcct;
	}

	public void setMerAcct(String merAcct) {
		this.merAcct = merAcct;
	}

	public String getIsRepeatSubmit() {
		return isRepeatSubmit;
	}

	public void setIsRepeatSubmit(String isRepeatSubmit) {
		this.isRepeatSubmit = isRepeatSubmit;
	}

	public String getTranDesc() {
		return tranDesc;
	}

	public void setTranDesc(String tranDesc) {
		this.tranDesc = tranDesc;
	}

	public String getRecvAcctType() {
		return recvAcctType;
	}

	public void setRecvAcctType(String recvAcctType) {
		this.recvAcctType = recvAcctType;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getTrustAcct() {
		return trustAcct;
	}

	public void setTrustAcct(String trustAcct) {
		this.trustAcct = trustAcct;
	}

	public String getMerUserId() {
		return merUserId;
	}

	public void setMerUserId(String merUserId) {
		this.merUserId = merUserId;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getTranCmd() {
		return tranCmd;
	}

	public void setTranCmd(String tranCmd) {
		this.tranCmd = tranCmd;
	}

	public String getRecvInfo() {
		return recvInfo;
	}

	public void setRecvInfo(String recvInfo) {
		this.recvInfo = recvInfo;
	}

	public String getPayInfo() {
		return payInfo;
	}

	public void setPayInfo(String payInfo) {
		this.payInfo = payInfo;
	}

	public String getEmailOrMobile() {
		return emailOrMobile;
	}

	public void setEmailOrMobile(String emailOrMobile) {
		this.emailOrMobile = emailOrMobile;
	}

	public String getBid() {
		return bid;
	}

	public void setBid(String bid) {
		this.bid = bid;
	}

	public String getComAmt() {
		return comAmt;
	}

	public void setComAmt(String comAmt) {
		this.comAmt = comAmt;
	}

	public String getComPayer() {
		return comPayer;
	}

	public void setComPayer(String comPayer) {
		this.comPayer = comPayer;
	}

	public String getFeePayer() {
		return feePayer;
	}

	public void setFeePayer(String feePayer) {
		this.feePayer = feePayer;
	}

	public String getRepaymentType() {
		return repaymentType;
	}

	public void setRepaymentType(String repaymentType) {
		this.repaymentType = repaymentType;
	}

	public String getGopayServerTime() {
		return gopayServerTime;
	}

	public void setGopayServerTime(String gopayServerTime) {
		this.gopayServerTime = gopayServerTime;
	}

	public String getOperateTarget() {
		return operateTarget;
	}

	public void setOperateTarget(String operateTarget) {
		this.operateTarget = operateTarget;
	}

	public String getIsAuto() {
		return isAuto;
	}

	public void setIsAuto(String isAuto) {
		this.isAuto = isAuto;
	}

	public String getBuyerRealName() {
		return buyerRealName;
	}

	public String getTranType() {
		return tranType;
	}

	public void setTranType(String tranType) {
		this.tranType = tranType;
	}

	public String getFreePayer() {
		return freePayer;
	}

	public void setFreePayer(String freePayer) {
		this.freePayer = freePayer;
	}

	public String getBandId() {
		return bandId;
	}

	public void setBandId(String bandId) {
		this.bandId = bandId;
	}

	public String getAcctId() {
		return acctId;
	}

	public void setAcctId(String acctId) {
		this.acctId = acctId;
	}

	public String getPayAgreeId() {
		return payAgreeId;
	}

	public void setPayAgreeId(String payAgreeId) {
		this.payAgreeId = payAgreeId;
	}

	public String getRecAgreeId() {
		return recAgreeId;
	}

	public void setRecAgreeId(String recAgreeId) {
		this.recAgreeId = recAgreeId;
	}

	public String getFreePayerAmt() {
		return freePayerAmt;
	}

	public void setFreePayerAmt(String freePayerAmt) {
		this.freePayerAmt = freePayerAmt;
	}

	public String getBuyerRealCertNo() {
		return buyerRealCertNo;
	}

	public void setBuyerRealCertNo(String buyerRealCertNo) {
		this.buyerRealCertNo = buyerRealCertNo;
	}

	public String getBuyerRealMobile() {
		return buyerRealMobile;
	}

	public void setBuyerRealMobile(String buyerRealMobile) {
		this.buyerRealMobile = buyerRealMobile;
	}

	public String getBuyerRealBankAcctNum() {
		return buyerRealBankAcctNum;
	}

	public void setBuyerRealBankAcctNum(String buyerRealBankAcctNum) {
		this.buyerRealBankAcctNum = buyerRealBankAcctNum;
	}

	public void setBuyerRealName(String buyerRealName) {
		this.buyerRealName = buyerRealName;
	}

	public String getBidNo() {
		return bidNo;
	}

	public void setBidNo(String bidNo) {
		this.bidNo = bidNo;
	}

	public Date getMerTxnTm() {
		return merTxnTm;
	}

	public void setMerTxnTm(Date merTxnTm) {
		this.merTxnTm = merTxnTm;
	}

	public String getBidType() {
		return bidType;
	}

	public void setBidType(String bidType) {
		this.bidType = bidType;
	}

	public String getInvestorContractNo() {
		return investorContractNo;
	}

	public void setInvestorContractNo(String investorContractNo) {
		this.investorContractNo = investorContractNo;
	}

	public String getUserTranAmt() {
		return userTranAmt;
	}

	public void setUserTranAmt(String userTranAmt) {
		this.userTranAmt = userTranAmt;
	}

	public String getTerracePayAmt() {
		return terracePayAmt;
	}

	public void setTerracePayAmt(String terracePayAmt) {
		this.terracePayAmt = terracePayAmt;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getMerId() {
		return merId;
	}

	public void setMerId(String merId) {
		this.merId = merId;
	}

	public String getGopayTxnDate() {
		return gopayTxnDate;
	}

	public void setGopayTxnDate(String gopayTxnDate) {
		this.gopayTxnDate = gopayTxnDate;
	}

	public String getThirdPartyId() {
		return thirdPartyId;
	}

	public void setThirdPartyId(String thirdPartyId) {
		this.thirdPartyId = thirdPartyId;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public String getSignedType() {
		return signedType;
	}

	public void setSignedType(String signedType) {
		this.signedType = signedType;
	}

	public String getCustName() {
		return custName;
	}

	public void setCustName(String custName) {
		this.custName = custName;
	}

	public String getCertNo() {
		return certNo;
	}

	public void setCertNo(String certNo) {
		this.certNo = certNo;
	}

	public String getCorpName() {
		return corpName;
	}

	public void setCorpName(String corpName) {
		this.corpName = corpName;
	}

	public String getIsRealNameCertify() {
		return isRealNameCertify;
	}

	public void setIsRealNameCertify(String isRealNameCertify) {
		this.isRealNameCertify = isRealNameCertify;
	}

	public String getConstracterId() {
		return constracterId;
	}

	public void setConstracterId(String constracterId) {
		this.constracterId = constracterId;
	}

	public String getSignedState() {
		return signedState;
	}

	public void setSignedState(String signedState) {
		this.signedState = signedState;
	}

	public String getGopayOrderNum() {
		return gopayOrderNum;
	}

	public void setGopayOrderNum(String gopayOrderNum) {
		this.gopayOrderNum = gopayOrderNum;
	}

	public String getUserSource() {
		return userSource;
	}

	public void setUserSource(String userSource) {
		this.userSource = userSource;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public String getReceiverCertNo() {
		return receiverCertNo;
	}

	public void setReceiverCertNo(String receiverCertNo) {
		this.receiverCertNo = receiverCertNo;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getBankOrderNum() {
		return bankOrderNum;
	}

	public void setBankOrderNum(String bankOrderNum) {
		this.bankOrderNum = bankOrderNum;
	}

	/**
     * @return the carrier
     */
    public String getCarrier() {
        return carrier;
    }

    /**
     * @param carrier the carrier to set
     */
    public void setCarrier(String carrier) {
        this.carrier = carrier;
    }

    /**
     * @return the freightNum
     */
    public String getFreightNum() {
        return freightNum;
    }

    /**
     * @param freightNum the freightNum to set
     */
    public void setFreightNum(String freightNum) {
        this.freightNum = freightNum;
    }

    /**
     * @return the freightType
     */
    public String getFreightType() {
        return freightType;
    }

    /**
     * @param freightType the freightType to set
     */
    public void setFreightType(String freightType) {
        this.freightType = freightType;
    }

	public String getDfSettleTime() {
		return dfSettleTime;
	}

	public void setDfSettleTime(String dfSettleTime) {
		this.dfSettleTime = dfSettleTime;
	}

	public String getPayChannel() {
		return payChannel;
	}

	public void setPayChannel(String payChannel) {
		this.payChannel = payChannel;
	}

	public static CommonResp formatProperty(CommonResp res) {
		// field.setAccessible(true);
		CommonResp newRes = new CommonResp();
		Field[] srcFields = res.getClass().getDeclaredFields();
		Field[] tarFields = newRes.getClass().getDeclaredFields();

		for (Field tarField : tarFields) {

			tarField.setAccessible(true);

			for (Field srcField : srcFields) {
				// 只针对private修饰的String类型的成员变量进行复制
				if (Modifier.PRIVATE == srcField.getModifiers() && srcField.getType().isAssignableFrom(String.class)) {
					srcField.setAccessible(true);
					if (srcField.getName().equals(tarField.getName())) {
						try {
							String str = String.valueOf(srcField.get(res));
							// str增加非空校验 edit by fanghw 20160614
							if (str != null) {
								str = new String(new String(str.getBytes("iso8859-1"), "UTF-8"));
								tarField.set(newRes, str);
							}
						} catch (IllegalArgumentException e) {
							e.printStackTrace();
						} catch (IllegalAccessException e) {
							e.printStackTrace();
						} catch (UnsupportedEncodingException e) {
							// TODO Auto-generated catch block
							e.printStackTrace();
						}
						break;
					}
				}
			}
		}
		return newRes;

	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.DEFAULT_STYLE);
	}

}
